package cn.xx.pet.domain;

import cn.xx.basic.domain.BaseDomain;
import cn.xx.org.domain.Shop;
import cn.xx.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BaseDomain {
    private String name;
    private BigDecimal saleprice;
    private String costprice;
    private String resources;
    private Integer state;

    @JsonFormat(pattern = "yyyy-HH-dd", timezone = "GMT+8")
    private Date offsaletime = new Date();
    @JsonFormat(pattern = "yyyy-HH-dd", timezone = "GMT+8")
    private Date onsaletime = new Date();
    @JsonFormat(pattern = "yyyy-HH-dd", timezone = "GMT+8")
    private Date createtime = new Date();
    // 外键 petypeid
    private PetType petType;
    // 外键shopid
    private Shop shop;
    // 第二任主人userid
    private User user;
    // 外键现任主人id
    private Long search_master_msg;
    // 详细信息的id
    private PetDetail petDetail;
}
